﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserSelector.ascx.cs"
	Inherits="Hxsoft.AppV1.Admin.Controls.UserSelector" %>
<%@ Register Src="~/Controls/ListBox_HeadBox.ascx" TagName="ListBox_HeadBox" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ListBox_FootBox.ascx" TagName="ListBox_FootBox" TagPrefix="uc" %>

<script type="text/javascript" src="<%# ResolveUrl("~/J/List.js") %>"></script>

<uc:ListBox_HeadBox ID="ListBox_HeadBox1" runat="server" />
<div class="ListBoxItem">
	<table id="ToolBarBox" cellspacing="0" width="100%">
		<tr>
			<td class="LevelCompart" align="right">
				<input type="button" class="Button" value="全选" onclick="SelectAllInner(&quot;List&quot;, &quot;&quot;);" />
				<input type="button" class="Button" value="反选" onclick="SelectReverseInner(&quot;List&quot;, &quot;&quot;);" />
				|
				<asp:Button ID="BtSelect" Text="选择" runat="server" OnClick="BtSelect_Click" />
			</td>
		</tr>
		<tr>
			<td id="Foot">
				关键字:<asp:TextBox ID="TbKeyword" runat="server"></asp:TextBox>
				<asp:CheckBox ID="CbShowSelected" Text="<%# ShowSelectedText %>" runat="server" AutoPostBack="True"
					Checked="True" OnCheckedChanged="CbShowSelected_CheckedChanged" />
				<asp:Button ID="BtSearch" runat="server" Text="搜索" OnClick="BtSearch_Click" />
				|
				<asp:Button ID="BtReload" runat="server" Text="刷新" OnClick="BtReload_Click" />
			</td>
		</tr>
	</table>
</div>
<div class="ListBoxItem">
	<asp:UpdatePanel ID="UpdatePanel1" runat="server">
		<ContentTemplate>
			<table id="ListBox" cellspacing="0" width="100%">
				<tbody>
					<tr>
						<td class="LevelCompart">
							<asp:Repeater ID="List" runat="server" OnItemCreated="DataList_ItemCreated" OnItemDataBound="DataList_ItemDataBound">
								<HeaderTemplate>
									<table id="List" cellspacing="1" cellpadding="2" width="100%">
										<tr id="Title">
											<th>
												用户名
											</th>
											<th>
												用户姓名
											</th>
											<th>
												邮件地址
											</th>
											<th width="120">
												创建时间
											</th>
											<th width="40">
												选择
											</th>
										</tr>
								</HeaderTemplate>
								<ItemTemplate>
									<tr class="mouseout" align="center" onmouseover="listItem_mouseOver(this);" onmouseout="listItem_mouseOut(this);">
										<td>
											<%# Eval("UserName")%>
										</td>
										<td>
											<%# ItemRealName %>
										</td>
										<td align="left">
											<a href="mailto:<%# Eval("Email")%>">
												<%# Eval("Email")%></a>
										</td>
										<td>
											<%# Eval("CreationDate")%>
										</td>
										<td>
											<asp:Label ID="LbSelectBox" runat="server"></asp:Label>
											<asp:HiddenField ID="Identifier_UserName" Value='<%# Eval("UserName") %>' runat="server" />
										</td>
									</tr>
								</ItemTemplate>
								<FooterTemplate>
									</table>
								</FooterTemplate>
							</asp:Repeater>
						</td>
					</tr>
					<tr>
						<td id="Td1" align="right">
							<Hxctr:AspNetPager ID="pager" runat="server" AlwaysShow="True" OnPageChanging="Pager_PageChanging"
								CustomInfoSectionWidth="" custominfotext="" PageSize="20" ShowCustomInfoSection="Left">
							</Hxctr:AspNetPager>
						</td>
					</tr>
				</tbody>
			</table>
		</ContentTemplate>
		<Triggers>
			<asp:AsyncPostBackTrigger ControlID="BtReload" EventName="Click" />
			<asp:AsyncPostBackTrigger ControlID="BtSearch" EventName="Click" />
		</Triggers>
	</asp:UpdatePanel>
</div>
<uc:ListBox_FootBox ID="ListBox_FootBox1" runat="server" />
